
import request from '@/utils/request'

export function selectCountAndList(query) {
  return request({
    url: '/delivery/selectCountAndList',
    method: 'get',
    params: query
  })
}

export function exportExcel(query) {
  let url = process.env.VUE_APP_BASE_API + '/delivery/exportExcel?'
  const param = []
  for (const key in query) {
    param.push(key + '=' + query[key])
  }
  url += param.join('&')
  window.open(url)
}

export function selectParams(query) {
  return request({
    url: '/delivery/selectParams',
    method: 'get',
    params: query
  })
}

